package com.zixuan.sina.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zixuan.sina.entity.Topic;
import com.zixuan.sina.entity.User;
import com.zixuan.sina.utils.Result;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TopicMapper extends BaseMapper<Topic> {


   List<Topic>  getTopicsByPostId(@Param("postId") String postId);


   void addPostTopic(@Param("postId") String postId,@Param("topicIds") List<Long> topicIds);
}
